package org.geometerplus.zlibrary.core.filetypes;

import org.geometerplus.zlibrary.core.filesystem.ZLFile;
import org.geometerplus.zlibrary.core.util.MimeType;

import java.util.List;

public abstract class FileType {
	public final String Id;

	protected FileType(String id) {
		Id = id;
	}

	public abstract boolean acceptsFile(ZLFile file);

	public abstract List<MimeType> mimeTypes();
	public abstract MimeType mimeType(ZLFile file);
	public MimeType rawMimeType(ZLFile file) {
		return mimeType(file);
	}

	public abstract String defaultExtension(MimeType mime);
}
